/* @override http://cedad2/Textbooks/styles/default/dialog.css */

/*
  -- Even more rounded corners with CSS: Base stylesheet --
*/

.dialog {
    position:relative;
    margin:0px auto;
    min-width:60px;
    max-width:1550px;
    z-index:1;
    margin-left:20px; /* default, width of left corner */
    margin-bottom:0.5em; /* spacing under dialog */
}

/*Background images start*/

.dialog .content,
.dialog .t,
.dialog .b,
.dialog .b div {
    background:transparent url(../../images/default/gold_back.png) no-repeat top right;
}

/* dialog variants - alternate colours, widths and so on */

.dialog.blue .content,
.dialog.blue .t,
.dialog.blue .b,
.dialog.blue .b div {
    background-image:url(../../images/default/blue_back.png);
}

.dialog.red .content,
.dialog.red .t,
.dialog.red .b,
.dialog.red .b div {
    background-image:url(../../images/default/red_back.png);
}

/*Background images end*/

.dialog .content {
    position:relative;
    padding:0px 20px 0px 0px;
}

.dialog .t {
 /* top+left vertical slice */
    position:absolute;
    left:0px;
    top:0px;
    width:20px; /* top slice width */
    margin-left:-20px;
    height:100%;
    background-position:top left;
}

.dialog .b {
    /* bottom */
    position:relative;
    width: 100%;
}

.dialog .b,
.dialog .b div {
    height:20px; /* height of bottom cap/shade */
}

.dialog .b {
    background-position:bottom right;
}

.dialog .b div {
    position:relative;
    width:20px; /* bottom corner width */
    margin-left:-20px;
    background-position:bottom left;
}

.dialog .hd,
.dialog .bd,
.dialog .ft {
    position:relative;
}

.dialog .wrapper {
    /* extra content protector - preventing vertical overflow (past background) */
    position:static;
    max-height:1000px;
    overflow:auto; /* note that overflow:auto causes a rather annoying redraw "lag" in Firefox 2, and may degrade performance. Might be worth trying without if you aren't worried about height/overflow issues. */
}

.dialog h1,
.dialog p {
    margin:0px; /* margins will blow out backgrounds, leaving whitespace. */
    padding:0.5em 0px 0.5em 0px;
}

.dialog h1 {
    padding-bottom:0px;
}

.dialog .wrapper .hd,
.dialog .wrapper .bd,
.dialog .wrapper .ft {
    margin-left:0px;
}